import { newRequest } from '@/utils/newRequest'

export function getDeviceList(params) {
    return newRequest({
        url: '/api/BasicsData/GetDeviceList',
        method: 'get',
        params: {
            ...params
        }
    })
}

export function insertDevice(data) {
    return newRequest({
        url: '/api/BasicsData/InsertDevice',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function updateDevice(data) {
    return newRequest({
        url: '/api/BasicsData/UpdateDevice',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function removeDevice(data) {
    return newRequest({
        url: '/api/BasicsData/RemoveDevice',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function startOrStopDevice(data) {
    return newRequest({
        url: '/api/BasicsData/StartOrStopDevice',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function getWorkStationPageList(data) {
    return newRequest({
        url: '/api/BasicsData/GetWorkStationPageList',
        method: 'post',
        data: {
            ...data
        }
    })
}